How To Call Sql Functions Inside Stored Procedures